package com.tedu.oop.day1;

public class Test {
    public static void main(String[] args) {
        Phone p=new Phone();
        p.name="HUAWEI";
        p.price=4999;
        System.out.println(p.name+p.price);
        p.call();
        p.send();

    }
}

class Phone{

    //成员变量
     int price;
     String name;

     //成员方法
    public void call(){
        System.out.println("打电话");
    }

    public void send(){
        System.out.println("发短信");
    }
}
